package com.lin.cloud.disk.entity.request;

import com.lin.cloud.disk.common.entity.request.AccessTokenRequest;
import com.lin.cloud.disk.common.entity.request.AccountRequestDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author ljc
 * @date 2021/1/20 11:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ModifyUserInfoRequest extends AccountRequestDTO {


    @ApiModelProperty(value = "用户昵称", name = "nickname")
//    @NotBlank(message = "昵称不能为空")
    private String nickname;

    @ApiModelProperty(value = "用户头像", name = "avatarUrl")
//    @Pattern(regexp = "http[s]{0,1}:\\/\\/([\\w.]+\\/?)\\S*/", message = "头像需要链接格式")
//    @NotBlank
    private String avatarUrl;

    @ApiModelProperty(value = "手机号", name = "phone")
//    @Pattern(regexp = "^(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$", message = "手机号格式错误")
    private String phone;

    @ApiModelProperty(value = "性别 0 - 男 1 女", name = "sex")
//    @Pattern(regexp = "[0-1]", message = "性别选择错误")
    private String sex;

    @ApiModelProperty(value = "qq", name = "qq")
    private Long qq;

    @ApiModelProperty(value = "邮箱", name = "email")
//    @Email(message = "邮箱格式错误")
    private String email;

}
